#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtWebSockets/qwebsocket.h>
#include <webserver.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    WebServer *server;


private slots:
    void on_pushButton_clicked();

    void clientConnected();
    void clientDisconnected();
    void receiveData(const QString &data);

    void on_send_button_clicked();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
